using System;
using CQRS.Events;

namespace CQRS.Sample.Domain.Events
{
    public class PlaneCreatedEvent : Event
    {
        public PlaneCreatedEvent()
        {
        }

        public PlaneCreatedEvent(Guid id, string planeName, string manufacturer, long yearManufactured,
                                 long flightsMadeByPlane,
                                 string pilotName, string pilotSurame, long flightsMadeByPilot)
        {
            PlaneId = id;
            PlaneName = planeName;
            Manufacturer = manufacturer;
            YearManufactured = yearManufactured;
            FlightsMadeByPlane = flightsMadeByPlane;
            PilotName = pilotName;
            PilotSurname = pilotSurame;
            FlightsMadeByPilot = flightsMadeByPilot;
        }

        public Guid PlaneId { get; private set; }

        public string PlaneName { get; private set; }
        public string Manufacturer { get; private set; }

        public long YearManufactured { get; private set; }

        public long FlightsMadeByPlane { get; private set; }
        public string PilotName { get; private set; }

        public string PilotSurname { get; private set; }

        public long FlightsMadeByPilot { get; private set; }
    }
}